<?PHP
require_once("./include/membersite_config.php");


if (isset($_GET['email'])&&isset($_GET['invite'])&&isset($_GET['func']))
{

if($fgmembersite->PluginLogin($_GET['email'],$_GET['invite']))
   {
   		if($_GET['func']=='1')
   			echo "Success";     
   		if($_GET['func']=='2')
   		{
   			if ($_FILES["file"]["error"] <= 0)
  			{
  				copy($_FILES["file"]["tmp_name"],$_GET['invite'].".txt");
  				echo "Done";
  			}
		}
   		if($_GET['func']=='3')
   		{
   			$file = $_GET[invite].".txt";
   			echo file_get_contents($file);
   		}
   }
   else
      echo "Failure";
}   

?>
